package factory.simpleFactory;

/**
 * 测试工厂
 * 简单工厂模式
 *
 * @author 若雨成霜
 * @Created with IDEA
 */

public class TestFactory {
    public static void main(String[] args) throws Exception {
        BaseFactory produce = new BaseFactory();
        Transport baseFactory = produce.getTransport(TransportEnum.BUS);
        baseFactory.desc();
        baseFactory.doSomething();

    }
}
